package com.kinyx.framework.db.entities;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

import com.kinyx.framework.annotation.RandomIgnore;
import com.kinyx.framework.db.annotation.Comment;
import com.kinyx.framework.db.annotation.Order;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@MappedSuperclass
public class MappedSuperclassBase extends MappedSuperclassNormal implements I_INSERT_TIME, I_UPDATE_TIME {

	@Column(nullable = false, updatable = false, length = 17)
	@Comment("新增时间（yyyyMMddHHmmssSSS）")
	@Order(10001)
	@RandomIgnore
	private String insertTime;

	@Column(nullable = false, length = 17)
	@Comment("更新时间（yyyyMMddHHmmssSSS）")
	@Order(10002)
	@RandomIgnore
	private String updateTime;

}
